<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>实例</title>
    <script type="text/javascript" src="../assets/js/vue-2.3.0.js"></script>
    <script type="text/javascript" src="../assets/js/jquery.js"></script>
</head>
<body>
    <h1>实例1</h1>
    <hr>
    <div id="app">
        {{message}}
    </div>
</body>
<script type="text/javascript">
    var app = new Vue({
        el:'#app',
        data:{
            message: 'helloworld!'
        },
        mounted:function () { 
            ////在Vue中使用jQuery 
            // $("#app").html('我是jQuery')
        },
        methods:{
            add:function(){
                console.log('调用成功')
            }
        }
    })
    app.add();
    app.message='你好！';
</script>
</html>